﻿﻿using System;
using System.Collections.Generic;
using System.Web;
namespace WebMvc.App.Models.Tips.Common
{
    public class user_group
    {
		public string id=null;
		public string title=null;
		public string grade=null;
		public string upgrade_exp=null;
		public string amount=null;
		public string point=null;
		public string discount=null;
		public string is_default=null;
		public string is_upgrade=null;
		public string is_lock=null;
        public string __name__;
        public user_group(string name)
        {
            this.__name__ = name;
			this.id = string.Format("{0}.id",__name__);
			this.title = string.Format("{0}.title",__name__);
			this.grade = string.Format("{0}.grade",__name__);
			this.upgrade_exp = string.Format("{0}.upgrade_exp",__name__);
			this.amount = string.Format("{0}.amount",__name__);
			this.point = string.Format("{0}.point",__name__);
			this.discount = string.Format("{0}.discount",__name__);
			this.is_default = string.Format("{0}.is_default",__name__);
			this.is_upgrade = string.Format("{0}.is_upgrade",__name__);
			this.is_lock = string.Format("{0}.is_lock",__name__);
        }
        public user_group()
        {
			this.id = string.Format("{0}.id",__name__);
			this.title = string.Format("{0}.title",__name__);
			this.grade = string.Format("{0}.grade",__name__);
			this.upgrade_exp = string.Format("{0}.upgrade_exp",__name__);
			this.amount = string.Format("{0}.amount",__name__);
			this.point = string.Format("{0}.point",__name__);
			this.discount = string.Format("{0}.discount",__name__);
			this.is_default = string.Format("{0}.is_default",__name__);
			this.is_upgrade = string.Format("{0}.is_upgrade",__name__);
			this.is_lock = string.Format("{0}.is_lock",__name__);
        }
        public override string ToString()
        {
            if (__name__ == null)
            {
                return "user_group";
            }
            else
            {
                return string.Format("user_group as {0}",__name__);
            }
        }
    }
}